home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / Players / JukeboxASF / keyprovider.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  782 b   |  28 lines

  1. //------------------------------------------------------------------------------
  2. // File: keyprovider.h
  3. //
  4. // Desc: DirectShow sample code - describes CKeyProvider helper class
  5. //
  6. // Copyright (c) 1999-2001, Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9.  
  10. class CKeyProvider : public IServiceProvider
  11. {
  12.     public:
  13.         //
  14.         // IUnknown interface
  15.         //
  16.         STDMETHODIMP QueryInterface(REFIID riid, void ** ppv);
  17.         STDMETHODIMP_(ULONG) AddRef();
  18.         STDMETHODIMP_(ULONG) Release();
  19.  
  20.         CKeyProvider();
  21.  
  22.         // IServiceProvider
  23.         STDMETHODIMP QueryService(REFIID siid, REFIID riid, void **ppv);
  24.  
  25.     private:
  26.         ULONG m_cRef;
  27. };
  28.